'use strict';

const mock = {};

require('fs').readdirSync(require('path').join(__dirname + '/mock'))
  .forEach(function (file) {
    Object.assign(mock, require('./mock/' + file));
  });

module.exports = {
  'POST /1clerkconfig/clerkconfig/getClerkConfigInfo': function (req,res) {
    res.json({
    "status":"0",
    "errorMsg":"操作成功",
    "body":{
        "type":"1",
        "isEnd":"Y",
        "headUrl":"http://wx.qlogo.cn/mmopen/IQRnLZNKzbFvfLsfDRWJibItCia4iamcYpUHYluBELjhhoRVd8GQRW220pFiaY0s0QRuicTvD2PEZ10hW25sqqCF5mTTzjKXjlSJH/0",
        "authCode":"1f24c101336311e6a2370050569few11",
        "chainLink":{
            "linkName":"xxx连锁",
            "actLinkId":2,
            "linkType":2,
            "linkParam":"23sdsd",
            "linkFlag":"bbbbbbbbbbbbbbbbb",
            "createTime":1471056246000,
            "updateTime":1471056246000
        },
        "clerk":{
            "clerkName":"本霞",
            "storeNo":"1231323",
            "clerkId":1,
            "storeName":"xxx门店",
            "chainNo":"23sdsd",
            "chainName":"xxx连锁",
            "headUrl":"http://wx.qlogo.cn/mmopen/IQRnLZNKzbFvfLsfDRWJibItCia4iamcYpUHYluBELjhhoRVd8GQRW220pFiaY0s0QRuicTvD2PEZ10hW25sqqCF5mTTzjKXjlSJH/0",
            "clerkPhone":"18688888888",
            "clerkUnionid":null,
            "clerkOpenid":"oUwNbt0KvLzT61M9V6rHJoTUdbpE",
            "clerkPosition":1,
            "createTime":1471056164000,
            "updateTime":1471056164000
        },
        "activity":[
            {
                "actTitle":"xxx活动",
                "actUrl":"http://www.baidu.com",
                "joinNum":0,
                "actId":1,
                "actBannerUrl":"http://weixin.4000916916.com/wechatBH/yyjwx/upload/images/material/20160612/44711465704696752.png",
                "actStarttime":1472659200000,
                "actEndtime":1476547199000
            }
        ],
        "clerkLink":{
            "linkName":"本霞",
            "actLinkId":1,
            "linkType":1,
            "linkParam":"18688888888",
            "linkFlag":"aaaaaaaaaaaaaaa",
            "createTime":1471056246000,
            "updateTime":1471056246000
        }
    }
})
  },
  'POST /clerkconfig/clerkconfig/*': function (req,res){
    res.json({
    "status":"0",
    "errorMsg":"操作成功",
    "body": "发送短信成功"
  });
  },
  'POST /clerkconfig/*': 'http://wx-test.by-health.com',
  'POST /firstactivity/*': 'http://wx-test.by-health.com',
};
